package Advanced.PageObject;

import org.junit.Assert;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;


public class SearchUnitTest {
	public static void main(String[] args) {
	
	WebDriver driver = new ChromeDriver();
	driver.get("http://www.google.com.au");
	
   	
    		
            GoogleHomePage homePage = new GoogleHomePage(driver);
            GoogleSearchPage searchPage = homePage.doSearch("Junit");
           
            
            Assert.assertTrue("Search was unsuccessful",
                            driver.getPageSource().contains("Google Home"));
            
            driver.quit();
    }
            

    
}
